﻿<%@ Page Title="Do an Examination - TestMaster" Language="C#" MasterPageFile="~/Views/Shared/Frontend.Master" Inherits="System.Web.Mvc.ViewPage<NTQOnlineExamFrontend.Models.ExaminationViewModel>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    Examination
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BreadCrumbPlaceHolder" runat="server">
    <li class="active"><a href="/Member/Examination/"><%=GetLocalResourceObject("Examination") %> </a></li>
    <li class="active"><%=GetLocalResourceObject("DoAnExam") %> </li>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <div class="box col-sm-12">
        <div class="box-content">
            <div class="form-horizontal">
                <div class="row">
                    <div class="col-sm-12">
                        <h3><%=GetLocalResourceObject("ChooseExamTitle") %> </h3>
                        <br />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label left" for="selectError"><%=GetLocalResourceObject("Term") %> </label>
                    <div class="controls exam-list">
                        <select id="TermId" class="term-list">
                            <% foreach (var term in Model.Terms)
                               {
                                   if (term.Key != Model.SelectedTerm)
                                   {
                                %>
                                <option value="<%= term.Key %>"><%= term.Value %></option>
                                <% }
                                       else
                                       {%>
                                <option value="<%= term.Key %>" selected="selected"><%= term.Value %></option>
                                <% }
                                   }%>
                        </select>
                    </div>
                </div>

                <div class="control-group">
                    <div class="controls examInfo" id="ExamInformation">
                    </div>
                </div>
                <div class="form-actions">
                    <button class="btn btn-danger" id="btnStartExam">Start Examination</button>
                    <button class="btn">Cancel</button>
                </div>
                <div class="info-notify">
                    <%=GetLocalResourceObject("ExamNotify") %> 
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            TermExamination.Init();
            $(document)
               .bind("contextmenu", function (e) {
                   return false;
               })

               .bind("keyup keydown", function(e) {
                   if ((e.ctrlKey && e.keyCode == 17) || (e.keyCode == 123)
                       || (e.ctrlKey && e.keyCode == 80) || e.keyCode == 44) { //prevent Ctrl-P and F12, Prt Sc
                       e.preventDefault();
                       return false;
                   }
               });

            $('body').bind('copy paste cut drag drop', function (e) {
                e.preventDefault();
            });
        });

    </script>

</asp:Content>
